home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 4
/
Apprentice-Release4.iso
/
Source Code
/
Libraries
/
Graphic Elements 3
/
GEDemo
/
Walk.h
< prev
Wrap
Text File
|
1995-06-03
|
1KB
|
72 lines
/*
Walk.h
Animated walking figure on balcony
Copyright 1993 by Al Evans. All rights reserved.
11/8/93
*/
#ifdef applec
#ifndef __cplusplus
#ifndef PRELOAD
#pragma load "::ToolKit.precompile"
#define PRELOAD
#endif
#endif
#endif
#ifndef GRAPHELEMENTS
#include "GraphElements.h"
#endif
#ifndef GESENSORS
#include "Sensors.h"
#endif
//Resource numbers of PICTs making up balcony scene
#define rBalconyPic 220
#define rAnimWalk 501
#define rWalkSnd 501
#define rSliderBkg 750
#define rSliderCtrl 751
//Position of balcony
#define balconyLeft 94
#define balconyTop 131
//Position of speed control
#define sliderLeft 48
#define sliderTop 54
//Balcony scene planes
#define walkPlane 3
#define balconyPlane 13
//#define balconyPlane walkPlane + 1
#define sliderPlane 4
//Balcony scene IDs
#define walkID 'CEA '
#define balconyID 'BALC'
#define sliderID 'SCTL'
#ifdef __cplusplus
extern "C" {
#endif
Boolean LoadBalconyScene(GEWorldPtr world);
//Autochange proc for walk animation
pascal void DoWalker(GEWorldPtr world, GrafElPtr walker);
//Callback proc for speed control slider
pascal void AdjustSpeed(GEWorldPtr world, GrafElPtr ignore, short newSpeed);
#ifdef __cplusplus
}
#endif